local Player = require 'packages.chess-games.xiangqi.core.player'

---@class Xiangqi.ClientPlayer : Xiangqi.Player, ClientPlayerBase
local ClientPlayer = Player:subclass("Xiangqi.ClientPlayer")
ClientPlayer:include(Fk.Base.ClientPlayerBase)

function ClientPlayer:initialize(cp)
  Player.initialize(self)
  Fk.Base.ClientPlayerBase.initialize(self, cp)
end

function ClientPlayer:sendDataToUI()
  local c = ClientInstance --[[@as Xiangqi.Client]]
  c:notifyUI("PropertyUpdate", { self.id, "role", self.role })
end

return ClientPlayer
